<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增工作班次')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shift-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">班组：</label>
                <div class="col-sm-8">
<!--                    <input name="tid" class="form-control" type="text" required>-->
                    <select class="form-control" name="tid" th:with="list=${@team.selectHisTeamGroupList(null)}" required>
                        <option th:each="t : ${list}" th:text="${t.teamName}" th:value="${t.id}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">次序：</label>
                <div class="col-sm-8">
                    <input name="sort" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">标识：</label>
                <div class="col-sm-8">
                    <input name="label" class="form-control" type="text" required>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">班次：</label>
                <div class="col-sm-8">
                    <input name="shift" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">最大人数：</label>
                <div class="col-sm-8">
                    <input name="max" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "his/shift"
        $("#form-shift-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-shift-add').serialize());
            }
        }
    </script>
</body>
</html>